Fixes bug in image uplader.