Fixes bug when uploading image with mulitple image components present.