Fix bug that was breaking the image editing feature in release mode