Are you can use jpg in dynamic compile with open source version ? If yes so i think you can do it with static compile