Fix bug in PYResource when loading image, add @2x support