TODO: Support loading .jpg and .gif images