Fix bug on load image